package liang.jiaxin.com.dto;

/**
 * 响应实体
 */
public class Result {

    /**
     * 成功响应
     */
    public static ResponseEntity warsucceRes(ResponseEntity responseMap) {
        responseMap.setOk(true);
        responseMap.setStatus(200);
        return responseMap;
    }
    /**
     * 失败响应
     */
    public static ResponseEntity warerrorRes(ResponseEntity responseMap) {
        responseMap.setOk(false);
        responseMap.setStatus(500);
        responseMap.setData(null);
        return responseMap;
    };
}